package com.example.demo.singoton;

/**
 * @Description
 * @Author youxin
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/12/22
 */
public class SingletonTest1 {

    public static void main(String[] args) {

    }
}
    class Singleton{
        private Singleton(){}
        private final  static  Singleton single=new Singleton();
        public static Singleton getSingleton(){
            return single;
        }
    }

